package com.qf.controller;
import com.qf.entity.Designer;
import com.qf.entity.R;
import com.qf.service.DesignerService;
import lombok.extern.log4j.Log4j;
import lombok.extern.log4j.Log4j2;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * 婚纱设计师表(Designer)表控制层
 *
 * @author makejava
 * @since 2023-04-08 10:12:25
 */
@RestController
@RequestMapping("/designer")
//@Log4j2
public class DesignerController {
    /**
     * 服务对象
     */
    @Resource
    private DesignerService designerService;

    /**
     * 查询婚纱设计师接口
     */
    @RequestMapping("/queryAllDesigner")
    public R<Designer> queryAllDesigner(){
        //log.debug("[queryAll  hunsha]查询所有婚纱设计师日志");
        System.out.println("婚纱设计师接口触发：：：：：：：");
        List<Designer> list = designerService.query().list();
        System.out.println("婚纱设计师接口触返回:"+list);
        //log.debug("[queryAll  hunsha]查询所有婚纱设计师日志 -{} ",list);
        return R.succ(list);
    }

}

